<?php
/*
 * Page Name: Quick Links page
 * Author: Avik Kundu
 * Created On : 10th August,2011
 * Modified On :
 * 
 */

include_once 'conn.php';
error_reporting(0);
session_start();
$arrQuickLinks = array();
$myClass = new clsEssential();
$arrQuickLinks = $myClass->quickLinks();

//print_r($arrQuickLinks);
$pagename = $myClass->getPageLink("testing");


if($pagename=="parts" || $pagename=="parts.php")
{
	$addLink = '
	<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block">
						
						<div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="">&nbsp; &nbsp;ORDER PARTS ONLINE</a></div></div></div>
							
				
	<div style="height:10px" ></div>';
}
else if($pagename=="service" || $pagename=="service.php")
{
	$addLink = '
	<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block">
						
						<div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="Book-A-Test-Drive">&nbsp; &nbsp;SCHEDULE SERVICE</a></div></div></div>
							
				
	<div style="height:10px" ></div>';
}
else if($pagename=="financing" || $pagename=="financing.php")
{
	$addLink = '
	<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block">
						
						<div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="">&nbsp; &nbsp;CREDIT APPLICATION</a></div></div></div>
							
				
	<div style="height:10px" ></div>';
}
else if($pagename=="specials" || $pagename=="specials.php")
{
	$addLink = '<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="specials.php#service">&nbsp; &nbsp;SERVICE SPECIALS</a></div></div></div>

						<div style="height:10px" ></div>
						<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="specials.php#parts">&nbsp; &nbsp;PARTS SPECIALS</a></div></div></div>
						<div style="height:10px" ></div>';
}
else if($_REQUEST['type']=="new" || $_REQUEST['action']=="new-search")
{
	$addLink = '<!--<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="gm_canada_new_model_showroom.php">&nbsp; &nbsp;NEW MODEL INFO</a></div></div></div>

						<div style="height:10px" ></div>-->	
						<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="gm_canada_build_a_vehicle.php">&nbsp; &nbsp;BUILD A VEHICLE</a></div></div></div>
						<div style="height:10px" ></div>
						<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="new_gm_vehicles_search.php">&nbsp; &nbsp;NEW VEHICLE SEARCH</a></div></div></div>
						<div style="height:10px" ></div>
						<div class="sidemenu-button" style="position:relative;width:188px;height:40px"><div class="sidemenu-button-block"><div class="sidemenu-button-link" style="position:absolute;top:0;left:13px"><a href="gm_canada_chevrolet-deals.php">&nbsp; &nbsp;GM CANADA DEALS</a></div></div></div>

						<div style="height:10px" ></div>';
}
else
{
	$addLink='';
}

?>
<div style="width:214px;float:left">
					<div style="width:214px;background: url(images/innermenu-bg.jpg) repeat-y top center">
						<div style="margin:0"><img src="images/innermenu-topcap.jpg" width="214" height="23" border="0" alt="" /></div>
		<div style="height:500px" >
		  <div>
		  <?php echo $addLink; ?>
		   <div class="quicklinkheading">
		    QUICK LINKS
		   </div>
		   </div>
		   <!-- -->
		  	    
		   <?php 
		   foreach($arrQuickLinks as $LinksNameLink)
		   {
		   ?>
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="<?php echo $LinksNameLink['page_link']; ?>"><?php echo $LinksNameLink['page_name']; ?></a>
			 </div>
		   </div>
		   <?php 
		   }
		   ?>	
		   
		   <!-- Used Vehicles -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="vehicles.php?type=used">View our Inventory!</a>
			 </div>
		   </div>

 	
		   <!-- Credit application -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="credit_application_form.php">Get Pre-Approved!</a>
			 </div>
		   </div>

 	
		   <!-- Specials -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="specials.php">Check out our Specials!</a>
			 </div>
		   </div>

		   <!--Hours -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="hours-of-operation.php">Hours of Operation</a>
			 </div>
		   </div>


 	
		   <!--Book a Test Drive -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="Book-A-Test-Drive.php">Book a Test Drive</a>
			 </div>
		   </div>

		   <!-- What's my Trade Worth? -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="whats-my-trade-worth.php">What's my Trade Worth?</a>
			 </div>
		   </div>

		   
		   <!-- Schedule Service -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="schedul-service-appt.php">Schedule A Service Appt</a>
			 </div>
		   </div>

		   

		   <!--Contact Us -->
		   <div class="">
		     <div class="shape"><img src="images/shape1.gif" alt="shape" /></div>
			 <div class="link1">
			  <a href="contact-us">Contact Us</a>
			 </div>
		   </div>
		   
		   <!--End-->
		</div>
		<div style="margin:0"><img src="images/innermenu-bottomcap.jpg" width="214" height="9" border="0" alt="" /></div>
					</div>
				</div>